#pragma once
#ifndef __OBJECT_H__
#define __OBJECT_H__
#include "Sprite.h"
#include "Sound.h"
//Thu vien hieu ung
#include "Infor.h"
#include <iostream>
class Object
{
protected:
	static unsigned int countObj;

public:
	//Doi tuong Infor
	//Doi tuong hieu ung
	CSound*		_pSoundManager;
	CSprites*	_pSprite;//Anh nguon
	RECT *		_pRect;
	int			_hidden;//An hien
	int			_typeObj;//Id
	int			_deltaY;//Di chuyen theo Y
	int			_layer;//Lop Doi tuong
	bool		_isActive;//
	bool		_directory;
	int			_id;//Id dung trong QuadTree
	int			_kind;//Loai doi tuong
	int			_status;//Trang thoi doi tuong	  
	virtual void	Update(int leftRect,int Style){}
	virtual int		Move(){return 0;}
	virtual void	Collision(Object *Ob){};
	virtual void	Release(){};
	virtual void	ObjGetColliton(int){};
	Object(void);
	~Object(void);
};
#endif